package com.zb.entity.system;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.zb.util.annotation.Ignore;
import com.zb.util.annotation.PrimaryKey;
import com.zb.util.annotation.Table;



/**
 * 权限资源
 * <p>
 * 修改时间：2015年12月16日
 * <p>
 * 修改人：谢龙飞
 * <p>
 * 修改内容：添加注释，主键注解，实现序列化接口，实体类注释
 */
@Table(name="oms_url_list")
public class OmsUrlList implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey
	private String url_id;
	private String url_name;
	private Integer is_leaf;
	private Integer sortCol;
	/** 节点路径 */
	private String url_path;
	/** 级别  menu ：菜单；permission：功能性权限。 */
	private String url_level;
	 /** 上级节点id：0000000000表示根节点  共10个字符长度*/
	private String pre_url_id;
	 /** 上级节点名称*/
	private String pre_url_name;
	private Integer valid_flag;
	
	private String icon;
	@Ignore
	private List<OmsUrlList> subUrls = new ArrayList<OmsUrlList>();
	@Ignore
	private String is_role;//此字段是为了查询角色对应是否有此权限而使用  1代表是，0代表否
	
	public void setUrl_id(String url_id){
		this.url_id=url_id;
	}
	public String getUrl_id(){
		return url_id;
	}
	public void setUrl_path(String url_path){
		this.url_path=url_path;
	}
	public String getUrl_path(){
		return url_path;
	}
 
	public String getUrl_level() {
		return url_level;
	}
	public void setUrl_level(String url_level) {
		this.url_level = url_level;
	}
	public void setPre_url_id(String pre_url_id){
		this.pre_url_id=pre_url_id;
	}
	public String getPre_url_id(){
		return pre_url_id;
	}
	public void setValid_flag(Integer valid_flag){
		this.valid_flag=valid_flag;
	}
	public Integer getValid_flag(){
		return valid_flag;
	}
	public List<OmsUrlList> getSubUrls() {
		return subUrls;
	}
	public void setSubUrls(List<OmsUrlList> subUrls) {
		this.subUrls = subUrls;
	}
	public String getUrl_name() {
		return url_name;
	}
	public void setUrl_name(String url_name) {
		this.url_name = url_name;
	}
	public Integer getIs_leaf() {
		return is_leaf;
	}
	public void setIs_leaf(Integer is_leaf) {
		this.is_leaf = is_leaf;
	}
	public Integer getSortCol() {
		return sortCol;
	}
	public void setSortCol(Integer sortCol) {
		this.sortCol = sortCol;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getPre_url_name() {
		return pre_url_name;
	}
	public void setPre_url_name(String pre_url_name) {
		this.pre_url_name = pre_url_name;
	}
	public String getIs_role() {
		return is_role;
	}
	public void setIs_role(String is_role) {
		this.is_role = is_role;
	}
 
	
	
}

